﻿<%@ Page Title="Stubby Account" Language="C#" MasterPageFile="~/Web Pages/Site.Master" 
    AutoEventWireup="true" CodeBehind="Account.aspx.cs" Inherits="CS490_Capstone___Stubby.Page.Account" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

     <asp:Panel ID="content" CssClass="content" runat="server">
        <asp:Panel ID="topSpacer" runat="server"></asp:Panel>
        <asp:Panel ID="input" CssClass="input" runat="server" Visible="True">
            <h3>Stubby Account Info:</h3>
            <h5 class="flag">Edit the fields you would like to change</h5>
            <asp:Table ID="signupTable" CssClass="inputs" runat="server">
                <asp:TableRow>
                    <asp:TableCell CssClass="rightNotSmall padded list">
                        <span>Name: </span>
                    </asp:TableCell>
                    <asp:TableCell CssClass="padded">
                        <asp:TextBox ID="firstName" runat="server" 
                            Text="First" CssClass="leftInput"></asp:TextBox>              
                    </asp:TableCell>
                    <asp:TableCell CssClass="padded">
                        <asp:TextBox ID="lastName" runat="server" 
                            Text="Last" CssClass="rightInput"></asp:TextBox>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="rightNotSmall padded list">
                        <span>Address: </span>
                    </asp:TableCell>
                    <asp:TableCell ColumnSpan="2" CssClass="padded">
                        <asp:TextBox ID="address1" runat="server" 
                            Text="Address Line 1" CssClass="addressInput"></asp:TextBox>              
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="rightNotSmall padded list">
                        &nbsp;
                    </asp:TableCell>
                    <asp:TableCell  ColumnSpan="2" CssClass="padded">
                        <asp:TextBox ID="address2" runat="server" 
                            Text="Address Line 2" CssClass="addressInput"></asp:TextBox>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="rightNotSmall padded list">
                        &nbsp;
                    </asp:TableCell>
                    <asp:TableCell ColumnSpan="2" CssClass="padded">
                        <asp:TextBox ID="city" runat="server" Text="City" 
                            CssClass="cityInput"></asp:TextBox>
                        <asp:DropDownList ID="state" runat="server" CssClass="stateInput">
                            <asp:ListItem>State</asp:ListItem>
                            <asp:ListItem>AK</asp:ListItem>
                            <asp:ListItem>AL</asp:ListItem>
                            <asp:ListItem>AR</asp:ListItem>
                            <asp:ListItem>AZ</asp:ListItem>
                            <asp:ListItem>CA</asp:ListItem>
                            <asp:ListItem>CO</asp:ListItem>
                            <asp:ListItem>CT</asp:ListItem>
                            <asp:ListItem>DC</asp:ListItem>
                            <asp:ListItem>DE</asp:ListItem>
                            <asp:ListItem>FL</asp:ListItem>
                            <asp:ListItem>GA</asp:ListItem>
                            <asp:ListItem>HI</asp:ListItem>
                            <asp:ListItem>IA</asp:ListItem>
                            <asp:ListItem>ID</asp:ListItem>
                            <asp:ListItem>IL</asp:ListItem>
                            <asp:ListItem>IN</asp:ListItem>
                            <asp:ListItem>KS</asp:ListItem>
                            <asp:ListItem>KY</asp:ListItem>
                            <asp:ListItem>LA</asp:ListItem>
                            <asp:ListItem>MA</asp:ListItem>
                            <asp:ListItem>MD</asp:ListItem>
                            <asp:ListItem>ME</asp:ListItem>
                            <asp:ListItem>MI</asp:ListItem>
                            <asp:ListItem>MN</asp:ListItem>
                            <asp:ListItem>MO</asp:ListItem>
                            <asp:ListItem>MS</asp:ListItem>
                            <asp:ListItem>MT</asp:ListItem>
                            <asp:ListItem>NC</asp:ListItem>
                            <asp:ListItem>ND</asp:ListItem>
                            <asp:ListItem>NE</asp:ListItem>
                            <asp:ListItem>NH</asp:ListItem>
                            <asp:ListItem>NJ</asp:ListItem>
                            <asp:ListItem>NM</asp:ListItem>
                            <asp:ListItem>NV</asp:ListItem>
                            <asp:ListItem>NY</asp:ListItem>
                            <asp:ListItem>OH</asp:ListItem>
                            <asp:ListItem>OK</asp:ListItem>
                            <asp:ListItem>OR</asp:ListItem>
                            <asp:ListItem>PA</asp:ListItem>
                            <asp:ListItem>RI</asp:ListItem>
                            <asp:ListItem>SC</asp:ListItem>
                            <asp:ListItem>SD</asp:ListItem>
                            <asp:ListItem>TN</asp:ListItem>
                            <asp:ListItem>TX</asp:ListItem>
                            <asp:ListItem>UT</asp:ListItem>
                            <asp:ListItem>VA</asp:ListItem>
                            <asp:ListItem>VT</asp:ListItem>
                            <asp:ListItem>WA</asp:ListItem>
                            <asp:ListItem>WI</asp:ListItem>
                            <asp:ListItem>WV</asp:ListItem>
                            <asp:ListItem>WY</asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox ID="zipCode" runat="server" 
                            Text="ZIP" CssClass="zipInput"></asp:TextBox>           
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="rightNotSmall padded list">
                        <span>Login Info: </span>
                    </asp:TableCell>
                    <asp:TableCell ColumnSpan="2" CssClass="padded">
                        <asp:TextBox ID="userName" runat="server" 
                            Text="User Name" CssClass="addressInput"></asp:TextBox>              
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="rightNotSmall padded list">
                        &nbsp;
                    </asp:TableCell>
                    <asp:TableCell ColumnSpan="2" CssClass="padded">
                        <asp:TextBox ID="email" runat="server" 
                            Text="Email Address" CssClass="addressInput"></asp:TextBox>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="rightNotSmall padded list">
                        <span>Change Password: </span>
                    </asp:TableCell>
                    <asp:TableCell ColumnSpan="2" CssClass="padded">
                        <asp:TextBox ID="password" runat="server" 
                            TextMode="password" CssClass="addressInput"></asp:TextBox>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="rightNotSmall padded list">
                        <span>Re-enter: </span>
                    </asp:TableCell>
                    <asp:TableCell ColumnSpan="2" CssClass="padded">
                        <asp:TextBox ID="password1" runat="server" 
                            TextMode="password" CssClass="addressInput"></asp:TextBox>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="rightNotSmall padded list">
                        &nbsp;
                    </asp:TableCell>
                    <asp:TableCell ColumnSpan="2" CssClass="padded">
                        <asp:CheckBox ID="newsletterStatus" runat="server" CssClass="checkBox" />
                        <span class="checkText">I would like to get the weekly newsletter</span>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell ColumnSpan="3" CssClass="right">
                        <asp:Button ID="Button1" runat="server" Text="Submit" onclick="Button1_Click" />
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="help" ColumnSpan="3">
                        <a onclick="getHelp(getMessage(5))">HELP&nbsp;</a>
                    </asp:TableCell>
                </asp:TableRow>
            </asp:Table>
            <br />
            <asp:RequiredFieldValidator ID="passwordValidator" runat="server" 
                ErrorMessage="You must enter your password in both boxes to submit" 
                ControlToValidate="password" CssClass="validation" SetFocusOnError="True">
                </asp:RequiredFieldValidator>
        </asp:Panel>
        <asp:Panel ID="output" CssClass="output" runat="server" Visible="False">
            <h3>You have successfully updated your account</h3>
            <a onclick="getBrowserHeight()" class="validation">Click here to return to the Search page</a>
        </asp:Panel>
    </asp:Panel>

</asp:Content>
